package com.university.vo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Activity entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "activity", catalog = "university")

public class Activity implements java.io.Serializable {

	// Fields

	private Integer activityId;
	private String activityTitle;
	private Timestamp activityTime;
	private String activityInfo;
	private String activityPlace;
	private Integer activityStuddentCount;
	private Boolean activityEnable;

	// Constructors

	/** default constructor */
	public Activity() {
	}

	@Override
	public String toString() {
		return "Activity [activityId=" + activityId + ", activityTitle=" + activityTitle + ", activityTime="
				+ activityTime + ", activityInfo=" + activityInfo + ", activityPlace=" + activityPlace
				+ ", activityStuddentCount=" + activityStuddentCount + ", activityEnable=" + activityEnable + "]";
	}

	/** minimal constructor */
	public Activity(Integer activityStuddentCount, Boolean activityEnable) {
		this.activityStuddentCount = activityStuddentCount;
		this.activityEnable = activityEnable;
	}

	/** full constructor */
	public Activity(String activityTitle, Timestamp activityTime, String activityInfo, String activityPlace,
			Integer activityStuddentCount, Boolean activityEnable) {
		this.activityTitle = activityTitle;
		this.activityTime = activityTime;
		this.activityInfo = activityInfo;
		this.activityPlace = activityPlace;
		this.activityStuddentCount = activityStuddentCount;
		this.activityEnable = activityEnable;
	}

	// Property accessors
	@Id
	@GeneratedValue

	@Column(name = "activity_id", unique = true, nullable = false)

	public Integer getActivityId() {
		return this.activityId;
	}

	public void setActivityId(Integer activityId) {
		this.activityId = activityId;
	}

	@Column(name = "activity_title", length = 50)

	public String getActivityTitle() {
		return this.activityTitle;
	}

	public void setActivityTitle(String activityTitle) {
		this.activityTitle = activityTitle;
	}

	@Column(name = "activity_time", length = 19)

	public Timestamp getActivityTime() {
		return this.activityTime;
	}

	public void setActivityTime(Timestamp activityTime) {
		this.activityTime = activityTime;
	}

	@Column(name = "activity_info", length = 5000)

	public String getActivityInfo() {
		return this.activityInfo;
	}

	public void setActivityInfo(String activityInfo) {
		this.activityInfo = activityInfo;
	}

	@Column(name = "activity_place", length = 50)

	public String getActivityPlace() {
		return this.activityPlace;
	}

	public void setActivityPlace(String activityPlace) {
		this.activityPlace = activityPlace;
	}

	@Column(name = "activity_studdentCount", nullable = false)

	public Integer getActivityStuddentCount() {
		return this.activityStuddentCount;
	}

	public void setActivityStuddentCount(Integer activityStuddentCount) {
		this.activityStuddentCount = activityStuddentCount;
	}

	@Column(name = "activity_enable", nullable = false, insertable = false)

	public Boolean getActivityEnable() {
		return this.activityEnable;
	}

	public void setActivityEnable(Boolean activityEnable) {
		this.activityEnable = activityEnable;
	}

}